 <#include "/common/pagerForm.html">
<form rel="pagerForm" method="post" action="" onsubmit="return navTabSearch(this)">
	<input type="hidden" id="advancedStatus" name="advancedStatus" value="${condition.advancedStatus!''}" />
	<div class="pageHeader">
		<div class="searchBar">
			<ul class="searchContent">
				<li><label><@label key='productionControlNum.C,colon'>生产管理号：</@label></label> <input type="text" name="productionControlNum" value="${condition.productionControlNum!''}" /></li>
				<li><label><@label key="workCenterCode.C,colon">工作中心编号:</@label></label> <input id="workCenterGrp.workCenterCode" name="workCenterCode" type="text" suggestFields="workCenterCode,workCenterText" postField="workCenterCode" suggestUrl="${rc.getContextPath()}/manage/workCenter/workCenterSuggest" lookupGroup="workCenterGrp" autocomplete="off" value="${condition.workCenterCode!''}" /></li>
				<li><label><@label key='orderStatusECode.C,colon'>订单状态：</@label></label> <select name="statuseCode">
						<option value=""><@label key='all.C'>所有</@label></option> <#if orderStatusECode??> <#list orderStatusECode as ecode>
						<option value="${ecode.eCode!''}"<#if condition.statuseCode?? && condition.statuseCode == ecode.eCode> selected</#if> >${ecode.eCodeText!''}</option> </#list> </#if>
				</select></li>
			</ul>
			<ul class="searchContent">
				<li><label><@label key='productionOrderNum.C,colon'>生产订单编号：</@label></label> <input type="text" name="productionOrderNum" value="${condition.productionOrderNum!''}" /></li>
				<li><label><@label key='orderType.C,colon'>订单类型：</@label></label> <select name="orderTypeCode">
						<option value=""><@label key='all.C'>所有</@label></option> <#if orderTypes??> <#list orderTypes as orderType>
						<option value="${orderType.orderTypeCode!''}"<#if condition.orderTypeCode?? && condition.orderTypeCode == orderType.orderTypeCode> selected</#if> >${orderType.orderTypeText!''}</option> </#list> </#if>
				</select></li>
				<li><label><@label key="operationScheduleFlag.C,colon">工序派工：</@label></label> <select name="operationScheduleFlag">
						<option value=""><@label key="all.C">所有</@label></option>
						<option value="0"<#if condition.operationScheduleFlag?? && condition.operationScheduleFlag == 0> selected="selected"</#if>><@label key="no.C">否</@label></option>
						<option value="1"<#if condition.operationScheduleFlag?? && condition.operationScheduleFlag == 1> selected="selected"</#if>><@label key="yes.C">是</@label></option>
				</select></li>
			</ul>
			<ul class="searchContent">
				<li><label> <@label key='cmprocess_code.C,colon'>工艺编号：</@label></label> <input type="text" name="processCode" value="${condition.processCode!''}" /></li>
				<li><label> <@label key='cmprocessrev.C,colon'>工艺版本：</@label></label> <input type="text" name="processRev" value="${condition.processRev!''}" /></li>
				<li class="query">
					<div class="buttonActive">
						<div class="buttonContent">
							<button type="submit"><@label key="query.B">查询</@label></button>
						</div>
					</div>
				</li>
			</ul>
		</div>
	</div>
</form>

<div class="pageContent">

	<div class="panelBar">
		<ul class="toolBar">
			<@buttonRight menuCode="PRODUCTIONCONTROL_VIEW" labelKey="view.B" defalutName="详情">
			<li><a class="icon" target="dialog" mask="true" width="650" height="510" rel="order_tab" href="${rc.getContextPath()}/manage/productionControl/productionControlView?id={order_code}&navTabId=${navTabId!''}"><span><@label key="view.B">详情</@label></span></a></li></@buttonRight>
			<@buttonRight menuCode="PRODUCTIONCONTROL_DELETE" labelKey="delete.B" defalutName="删除">
			<li><a class="delete" target="selectedTodo" postType="string" rel="ids" callback="batchjobAjaxDone" title="<@label key='delete_sure.D'>确定要删除</@label>？" href="${rc.getContextPath()}/manage/productionControl/deleteProductionControl?navTabId=${navTabId!''}"><span><@label key="delete.B">删除</@label></span></a></li></@buttonRight>
			<@buttonRight menuCode="PRODUCTIONCONTROL_CLOSE" labelKey="forceClose.B" defalutName="强制关闭">
			<li><a class="delete" target="selectedTodo" postType="string" rel="ids" callback="batchjobAjaxDone" title="<@label key='ok.B,forceClose.B'>确定强制关闭吗？</@label>？" href="${rc.getContextPath()}/manage/productionControl/closeProductionControl?navTabId=${navTabId!''}"><span><@label key="forceClose.B">强制关闭</@label></span></a></li></@buttonRight>
		</ul>
	</div>
	<table class="table" width="1352px" layoutH="192" style="overflow: scroll;">
		<thead>
			<tr>

				<th width="22"><input type="checkbox" group="ids" class="checkboxCtrl"></th>
				<th width="30"><@label key="serialNumber.C">序号</@label></th>
				<th width="150" orderField="productionControlNum"<#if (page.orderField?? && page.orderField == 'productionControlNum')>class="${page.orderDirection!''}"</#if>><@label key="productionControlNum.C">生产管理号</@label></th>
				<th width="150" orderField="productionOrderNum"<#if (page.orderField?? && page.orderField == 'productionOrderNum')>class="${page.orderDirection!''}"</#if>><@label key="productionOrderNum.C">订单编号</@label></th>
				<th width="80" orderField="operationScheduleFlag"<#if (page.orderField?? && page.orderField == 'operationScheduleFlag')>class="${page.orderDirection!''}"</#if>><@label key="operationScheduleFlag.C">工序派工</@label></th>
<!--
				<th width="100" orderField="materialCode"<#if (page.orderField?? && page.orderField == 'materialCode')>class="${page.orderDirection!''}"</#if>><@label key="materialCode.C">物料编号</@label></th>
-->
				<th width="100" orderField="materialText"<#if (page.orderField?? && page.orderField == 'materialText')>class="${page.orderDirection!''}"</#if>><@label key="materialText.C">物料名称</@label></th>
				<th width="100" orderField="statusECode"<#if (page.orderField?? && page.orderField == 'statusECode')>class="${page.orderDirection!''}"</#if>><@label key="orderStatusECode.C">订单状态</@label></th>
<!--
				<th width="100" orderField="workCenterCode"<#if (page.orderField?? && page.orderField == 'workCenterCode')>class="${page.orderDirection!''}"</#if>><@label key="workCenterCode.C">工作中心编号</@label></th>
-->
				<th width="100" orderField="workCenterText"<#if (page.orderField?? && page.orderField == 'workCenterText')>class="${page.orderDirection!''}"</#if>><@label key="workCenterText.C">工作中心名称</@label></th>
				<th width="100" orderField="plannedQuantity"<#if (page.orderField?? && page.orderField == 'plannedQuantity')>class="${page.orderDirection!''}"</#if>><@label key="plannedQuantity.C">计划数量</@label></th>
				<th width="100" orderField="processCode"<#if (page.orderField?? && page.orderField == 'processCode')>class="${page.orderDirection!''}"</#if>><@label key="cmprocess_code.C">工艺编号</@label></th>
				<th width="100" orderField="processRev"<#if (page.orderField?? && page.orderField == 'processRev')>class="${page.orderDirection!''}"</#if>><@label key="cmprocessrev.C">工艺版本</@label></th>
<!--
				<th width="100" orderField="orderTypeCode"<#if (page.orderField?? && page.orderField == 'orderTypeCode')>class="${page.orderDirection!''}"</#if>><@label key="orderTypeCode.C">订单类型编号</@label></th>
-->
				<th width="100" orderField="orderTypeText"<#if (page.orderField?? && page.orderField == 'orderTypeText')>class="${page.orderDirection!''}"</#if>><@label key="orderTypeText.C">订单类型描述</@label></th>
			</tr>
		</thead>
		<tbody>
			<#if page??><#if (page.data?size>0)> <#list page.data as order>
			<tr target="order_code" rel="${order.productionControlNum!''}">

				<td><input name="ids" value="${order.productionControlNum!''}" type="checkbox"></td>
				<td>${page.startRow + order_index}</td>
				<td>${order.productionControlNum!''}</td>
				<td>${order.productionOrderNum!''}</td>
				<td><#if order.operationScheduleFlag == 0><@label key="no.C">否</@label><#else><@label key="yes.C">是</@label></#if></td>
				<!--<td>${order.materialCode!''}</td>-->
				<td>${order.materialText!''}</td>
				<td><#if orderStatusECode??> <#list orderStatusECode as ecode> <#if order.statuseCode == ecode.eCode>${ecode.eCodeText!''}<#break></#if> </#list> </#if></td>
				<!--<td>${order.workCenterCode!''}</td>-->
				<td>${order.workCenterText!''}</td>
				<td>${order.plannedQuantity!''}</td>
				<td>${order.processCode!''}</td>
				<td>${order.processRev!''}</td>
				<!--<td>${order.orderTypeCode!''}</td>-->
				<td>${order.orderTypeText!''}</td>
			</tr>
			</#list> <#else>
			<tr>
				<td colspan="6" class="noData">======<@label key="noListData.C">列表无数据</@label>=====</td>
			</tr>
			</#if> <#else>
			<tr>
				<td colspan="6" class="noData">======<@label key="noListData.C">列表无数据</@label>=====</td>
			</tr>
			</#if>
		</tbody>
	</table>
	<#include "/common/panelBar.html">
</div>